package com.keepsport.keepsportapi.controller;

import com.keepsport.keepsportapi.service.intf.CourseService;
import com.keepsport.keepsportapi.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@CrossOrigin
@RestController
@RequestMapping("/api/course/")
@Api(tags = "计划测试接口")
public class CourseController {
    @Resource
    private CourseService service;

    @ApiOperation(value = "课程价格展示")
    @GetMapping("cou.do")
    public R course(){
        //System.out.println("数据1"+service.courseAll());
        return service.courseAll();
    }


}
